package cn.virens.common.boot.rabbit;


import cn.virens.common.util.exception.APIException;

public interface RabbitManager {

    /**
     * 发送同步消息(有应答)
     */
    <T> Object sendSync(T packet) throws APIException;

    /**
     * 发送异步消息(无应答)
     */
    <T> T sendAsyn(T packet) throws APIException;

}
